import { req,formreq } from './axiosFun';

/**
 * 店铺管理
 **/
// 获取店铺信息
export const sellerList = (params) => { return req("post", "/api/seller/querySellerInfo", params) };
// 更新店铺信息
export const sellerUpdate = (params) => { return formreq("post", "/api/seller/updateSellerInfo", params) };
// 添加店铺信息
export const sellerAdd = (params) => { return formreq("post", "/api/seller/saveSellerInfo", params) };
// 删除店铺信息
export const sellerDel = (params) => { return req("post", "/api/seller/removeSellerInfo", params) };
// 店铺休息
export const sellerClose = (params) => { return req("post", "/api/seller/closeSellerInfo", params) };
// 开店
export const sellerOpen = (params) => { return req("post", "/api/seller/openSellerInfo", params) };
// 获取数据字典
export const dictList = (params) => { return req("post", "/api/standardCode/queryCodeByType", params) };
// 查询营业执照照片
export const yyPhotoList = (params) => {return req("post", "/api/seller/getPhotoBy", params) }
// 保存营业执照照片
export const yyPhotoSave = (params) => {return req("post", "/api/seller/savePhoto", params) }

//查询优惠券列表
export const disCountList = (params) =>{return req("post","/api/seller/queryDisCount",params)}
//添加商家优惠券
export const disCountAdd = (params) =>{return req("post","/api/seller/saveSellerDiscount",params)}
//移除商家优惠券
export const disCountRemove = (params) =>{return req("post","/api/seller/removeSellerDiscount",params)}
